<?php if (!defined('THINK_PATH')) exit(); /*a:5:{s:87:"/www/wwwroot/acy.sj-tea.cn/public/../application/admin/view/shopro/user/user/index.html";i:1738904347;s:69:"/www/wwwroot/acy.sj-tea.cn/application/admin/view/layout/default.html";i:1725591948;s:66:"/www/wwwroot/acy.sj-tea.cn/application/admin/view/common/meta.html";i:1725591948;s:75:"/www/wwwroot/acy.sj-tea.cn/application/admin/view/shopro/common/script.html";i:1738904347;s:68:"/www/wwwroot/acy.sj-tea.cn/application/admin/view/common/script.html";i:1725591948;}*/ ?>
<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8">
<title><?php echo (isset($title) && ($title !== '')?$title:''); ?></title>
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">
<meta name="renderer" content="webkit">
<meta name="referrer" content="never">
<meta name="robots" content="noindex, nofollow">

<link rel="shortcut icon" href="/assets/img/favicon.ico" />
<!-- Loading Bootstrap -->
<link href="/assets/css/backend<?php echo \think\Config::get('app_debug')?'':'.min'; ?>.css?v=<?php echo \think\Config::get('site.version'); ?>" rel="stylesheet">

<?php if(\think\Config::get('fastadmin.adminskin')): ?>
<link href="/assets/css/skins/<?php echo \think\Config::get('fastadmin.adminskin'); ?>.css?v=<?php echo \think\Config::get('site.version'); ?>" rel="stylesheet">
<?php endif; ?>

<!-- HTML5 shim, for IE6-8 support of HTML5 elements. All other JS at the end of file. -->
<!--[if lt IE 9]>
  <script src="/assets/js/html5shiv.js"></script>
  <script src="/assets/js/respond.min.js"></script>
<![endif]-->
<script type="text/javascript">
    var require = {
        config:  <?php echo json_encode($config ?? ''); ?>
    };
</script>

    </head>

    <body class="inside-header inside-aside <?php echo defined('IS_DIALOG') && IS_DIALOG ? 'is-dialog' : ''; ?>">
        <div id="main" role="main">
            <div class="tab-content tab-addtabs">
                <div id="content">
                    <div class="row">
                        <div class="col-xs-12 col-sm-12 col-md-12 col-lg-12">
                            <section class="content-header hide">
                                <h1>
                                    <?php echo __('Dashboard'); ?>
                                    <small><?php echo __('Control panel'); ?></small>
                                </h1>
                            </section>
                            <?php if(!IS_DIALOG && !\think\Config::get('fastadmin.multiplenav') && \think\Config::get('fastadmin.breadcrumb')): ?>
                            <!-- RIBBON -->
                            <div id="ribbon">
                                <ol class="breadcrumb pull-left">
                                    <?php if($auth->check('dashboard')): ?>
                                    <li><a href="dashboard" class="addtabsit"><i class="fa fa-dashboard"></i> <?php echo __('Dashboard'); ?></a></li>
                                    <?php endif; ?>
                                </ol>
                                <ol class="breadcrumb pull-right">
                                    <?php foreach($breadcrumb as $vo): ?>
                                    <li><a href="javascript:;" data-url="<?php echo $vo['url']; ?>"><?php echo $vo['title']; ?></a></li>
                                    <?php endforeach; ?>
                                </ol>
                            </div>
                            <!-- END RIBBON -->
                            <?php endif; ?>
                            <div class="content">
                                <link rel="stylesheet" href="//at.alicdn.com/t/c/font_2385137_b8qygb2jne.css?v=<?php echo htmlentities($site['version'] ?? ''); ?>">
<link rel="stylesheet" href="/assets/addons/shopro/css/index.css?v=<?php echo htmlentities($site['version'] ?? ''); ?>">
<?php if($DARK_TYPE != 'none'): ?>
<link rel="stylesheet" href="/assets/addons/shopro/css/dark.css?v=<?php echo htmlentities($site['version'] ?? ''); ?>" data-render="darktheme" />
<?php endif; ?>
<link rel="stylesheet" href="/assets/addons/shopro/libs/element-plus/index.css?v=<?php echo htmlentities($site['version'] ?? ''); ?>">

<script src="/assets/addons/shopro/libs/vue.js?v=<?php echo htmlentities($site['version'] ?? ''); ?>"></script>
<script src="/assets/addons/shopro/libs/element-plus/index.js?v=<?php echo htmlentities($site['version'] ?? ''); ?>"></script>
<script src="/assets/addons/shopro/libs/element-plus/zh-cn.js?v=<?php echo htmlentities($site['version'] ?? ''); ?>"></script>
<script src="/assets/addons/shopro/libs/element-plus/icons-vue.js?v=<?php echo htmlentities($site['version'] ?? ''); ?>"></script>

<script src="/assets/addons/shopro/libs/sortable.js?v=<?php echo htmlentities($site['version'] ?? ''); ?>"></script>
<script src="/assets/addons/shopro/libs/vuedraggable.js?v=<?php echo htmlentities($site['version'] ?? ''); ?>"></script>

<script src="/assets/addons/shopro/libs/common.js?v=<?php echo htmlentities($site['version'] ?? ''); ?>"></script>

<script src="/assets/addons/shopro/libs/clipboard.min.js?v=<?php echo htmlentities($site['version'] ?? ''); ?>"></script>

<script src="/assets/addons/shopro/components/sa-image.js?v=<?php echo htmlentities($site['version'] ?? ''); ?>"></script>
<script src="/assets/addons/shopro/components/sa-uploader.js?v=<?php echo htmlentities($site['version'] ?? ''); ?>"></script>
<script src="/assets/addons/shopro/components/sa-user-profile.js?v=<?php echo htmlentities($site['version'] ?? ''); ?>"></script>
<script src="/assets/addons/shopro/components/sa-filter.js?v=<?php echo htmlentities($site['version'] ?? ''); ?>"></script>
<script src="/assets/addons/shopro/components/sa-filter-condition.js?v=<?php echo htmlentities($site['version'] ?? ''); ?>"></script>
<script src="/assets/addons/shopro/components/sa-pagination.js?v=<?php echo htmlentities($site['version'] ?? ''); ?>"></script>

<div id="index" class="user-index panel panel-default panel-intro" v-cloak>
    <el-container class="panel-block">
        <el-header class="sa-header">
            <div class="sa-title sa-flex sa-row-between">
                <div class="sa-title-left">
                    <div class="left-name">用户管理</div>
                    <sa-filter-condition v-model="state.filter" @filter-delete="onChangeFilter">
                    </sa-filter-condition>
                </div>
                <div class="sa-title-right">
                    <el-button class="sa-button-refresh" icon="RefreshRight" @click="getData"></el-button>
                    <el-button class="sa-button-refresh" icon="Search" @click="onOpenFilter"></el-button>
                </div>
            </div>
        </el-header>
        <el-main class="sa-main">
            <el-table height="100%" class="sa-table" :data="state.data" stripe @sort-change="onChangeSort">
                <el-table-column prop="id" label="ID" min-width="90" sortable="custom"> </el-table-column>
                <el-table-column label="用户信息" min-width="150">
                    <template #default="scope">
                        <sa-user-profile :user="scope.row" :id="scope.row.id"></sa-user-profile>
                    </template>
                </el-table-column>
                <el-table-column prop="username" label="用户名" min-width="120"></el-table-column>
                <el-table-column prop="mobile" label="手机号" min-width="120"></el-table-column>
                <el-table-column sortable="custom" prop="commission" label="佣金" min-width="110"></el-table-column>
                <el-table-column sortable="custom" prop="total_consume" label="总消费" min-width="110"></el-table-column>
                <el-table-column sortable="custom" prop="score" label="积分" min-width="110"></el-table-column>
                <el-table-column sortable="custom" prop="money" label="余额" min-width="110"></el-table-column>
                <el-table-column sortable="custom" prop="createtime" label="注册时间" min-width="172"></el-table-column>
                <el-table-column sortable="custom" prop="logintime" label="上次登录" min-width="172"></el-table-column>
                <el-table-column fixed="right" label="操作" min-width="120">
                    <template #default="scope">
                        <?php if($auth->check('shopro/user/user/detail')): ?>
                        <el-button type="primary" link @click="onDetail(scope.row.id)">查看</el-button>
                        <?php endif; ?>
                        <el-popconfirm width="fit-content" confirm-button-text="确认" cancel-button-text="取消"
                            title="确认删除这条记录?" @confirm="onDelete(scope.row.id)">
                            <template #reference>
                                <?php if($auth->check('shopro/user/user/delete')): ?>
                                <el-button type="danger" link>删除</el-button>
                                <?php endif; ?>
                            </template>
                        </el-popconfirm>
                    </template>
                </el-table-column>
            </el-table>
        </el-main>
        <el-footer class="sa-footer sa-flex sa-row-right">
            <sa-pagination v-model="pagination" @pagination-change="getData"></sa-pagination>
        </el-footer>
    </el-container>
    <sa-filter v-model="state.filter" @filter-change="onChangeFilter"></sa-filter>
</div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <script src="/assets/js/require<?php echo \think\Config::get('app_debug')?'':'.min'; ?>.js" data-main="/assets/js/require-backend<?php echo \think\Config::get('app_debug')?'':'.min'; ?>.js?v=<?php echo htmlentities($site['version'] ?? ''); ?>"></script>
    </body>
</html>
